package DAO;

public class Goods {
    //编号，品名，单价，上市日期，类别，产地。
    private String goodsNum;//编号
    private String goodsName;//品名
    private String goodsPrice;//单价
    private String goodsListingDate;//上市日期
    private String goodsCategories;//类别
    private String goodsOrigin;//产地
    //无参构造
    public Goods() {}
    //带参构造
    public Goods(String goodsNum, String goodsName, String goodsPrice, String goodsListingDate, String goodsCategories, String goodsOrigin) {
        this.goodsNum = goodsNum;
        this.goodsName = goodsName;
        this.goodsPrice = goodsPrice;
        this.goodsListingDate = goodsListingDate;
        this.goodsCategories = goodsCategories;
        this.goodsOrigin = goodsOrigin;
    }
    //get，set方法

    public String getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(String goodsNum) {
        this.goodsNum = goodsNum;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(String goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getGoodsListingDate() {
        return goodsListingDate;
    }

    public void setGoodsListingDate(String goodsListingDate) {
        this.goodsListingDate = goodsListingDate;
    }

    public String getGoodsCategories() {
        return goodsCategories;
    }

    public void setGoodsCategories(String goodsCategories) {
        this.goodsCategories = goodsCategories;
    }

    public String getGoodsOrigin() {
        return goodsOrigin;
    }

    public void setGoodsOrigin(String goodsOrigin) {
        this.goodsOrigin = goodsOrigin;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "goodsNum='" + goodsNum + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsPrice='" + goodsPrice + '\'' +
                ", goodsListingDate='" + goodsListingDate + '\'' +
                ", goodsCategories='" + goodsCategories + '\'' +
                ", goodsOrigin='" + goodsOrigin + '\'' +
                '}';
    }
}
